package service.impl;

import mapper.BookingMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Booking;
import service.BookingService;

import java.awt.print.Book;
import java.util.List;

@Service
public class BookingServiceImpl implements BookingService {
    @Autowired
    private BookingMapper bookingMapper;

    @Override
    public int add(Booking booking) {
        return bookingMapper.add(booking);
    }

    @Override
    public List<Booking> list() {
        return bookingMapper.list();
    }
}
